//.miaosha .adv-show .ctrl .pre .next
//.miaosha .adv-show  .left-adv  ul
//.left-adv width: 1000px;
(function () {
	
	var ulPlay=$('.miaosha .adv-show  .left-adv  ul');
	
	$('.miaosha .adv-show .ctrl .pre').click(function () {
	
	if (ulPlay.css('left')=='-3000px') {
		ulPlay.css('left','-1000px');
			ulPlay.animate({'left':"-2000px"},500);
		
		
	}else{
		ulPlay.animate({'left':"-=1000px"},500);
	}
	
		
	

		console.log(ulPlay.css('left'))
	});
	$('.miaosha .adv-show .ctrl .next').click(function () {
	
		if (ulPlay.css('left')=='0px') {
			ulPlay.css('left','-3000px');
			ulPlay.animate({'left':"-2000px"},500);
		} else{
			ulPlay.animate({'left':"+=1000px"},500);
		}
		
		console.log(ulPlay.css('left'));
	
	});
	
	
	
	
})()